<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>操作员列表</title>
</head>
<body>
<h1>操作员列表</h1>
<div>
    <a href="javascript:page()">用户列表查询</a>
</div>
<table>
    <tr>
        <th>Index</th>
        <th>Username</th>
        <th>Nickname</th>
    </tr>
    <tr th:each="operator, iterStat : ${operators}">
        <td th:text="${iterStat.index+1}"></td>
        <td th:text="${operator.username}"></td>
        <td th:text="${operator.nickname}"></td>
    </tr>
</table>
<script src="./assets/jquery-v3.7.1/jquery.min.js"></script>
<script th:inline="javascript">
    function page() {
        let current = [[${#request.getParameter('current')}]];
        let size = [[${#request.getParameter('size')}]];
        location.href = './operator?current=' + (parseInt(current) + 1) + '&size=' + size
    }
</script>
</body>
</html>
